package com.nanmeishu.services.tale.controller;

import com.nanmeishu.infrastructure.web.entity.ResponseResult;
import com.nanmeishu.infrastructure.web.util.ResultUtil;
import com.nanmeishu.services.tale.entity.RecommendCityGroup;
import com.nanmeishu.services.tale.facade.RecommendCityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "推荐模块接口")
@RequestMapping("/tale/recommendCity")
@RestController
public class RecommendCityController {

    @Autowired
    private RecommendCityService recommendCityService;

    @ApiOperation("获取所有推荐地图信息")
    @GetMapping("/listRecommendCityGroup")
    public ResponseResult<List<RecommendCityGroup>> listRecommendCityGroup(){
      List<RecommendCityGroup>  recommendCityGroups= recommendCityService.listRecommendCityGroup();
        return ResultUtil.success(recommendCityGroups);
    }


}
